Skip to content

Support for android native libraries in plugin #583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2015

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jun 22, 2015

Should be merged after this PR - telerik/mobile-cli-lib#368
#510

@ns-bot
Copy link

ns-bot commented Jun 22, 2015

@ns-bot
Copy link

ns-bot commented Jun 22, 2015

@Fatme Fatme added this to the 1.2.0 milestone Jun 22, 2015
@Fatme Fatme added the feature label Jun 22, 2015
this.$logger.info("Generate build.xml for %s", targetDir);
this.runAndroidUpdate(targetDir, targetSdk).wait();

let lines = this.$fs.readText(projProp, "utf-8").wait().split(os.EOL);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the correct spelling of encoding is "utf8", see https://nodejs.org/api/fs.html#fs_fs_writefile_filename_data_options_callback

At any rate, can we use the property parser module instead?

@Fatme Fatme force-pushed the fatme/android-native-libs branch from 38e7804 to 97b3208 Compare June 29, 2015 05:48
@ns-bot
Copy link

ns-bot commented Jun 29, 2015

@dtopuzov
Copy link
Contributor

run ci

@ns-bot
Copy link

ns-bot commented Jun 29, 2015

@Fatme Fatme force-pushed the fatme/android-native-libs branch from 97b3208 to 3178cf9 Compare June 29, 2015 17:33
@ns-bot
Copy link

ns-bot commented Jun 29, 2015

@Fatme Fatme force-pushed the fatme/android-native-libs branch from 3178cf9 to 48c299a Compare June 30, 2015 05:20
@ns-bot
Copy link

ns-bot commented Jun 30, 2015

@Fatme Fatme self-assigned this Jun 30, 2015
return (() => {
let editor = this.createEditor().wait();
let i = 1;
while (editor.get(this.buildKeyName(key, i))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent me 😿

@rosen-vladimirov
Copy link
Contributor

When plugin is added before platform, on tns platform add android we receive error, because pluginPlatformsFolderPath is never set.
This is working in case platform is added before plugin.

let libRefExists = _.any(references, r => path.normalize(r.path) === path.normalize(referencePath));
if(libRefExists) {
this.removeFromPropertyList("android.library.reference", referencePath).wait();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider adding else with logger.error("Could not find.....") as it will be easier for debugging

@Fatme Fatme force-pushed the fatme/android-native-libs branch from 48c299a to df943b1 Compare July 2, 2015 13:29
@ns-bot
Copy link

ns-bot commented Jul 2, 2015

@Fatme Fatme force-pushed the fatme/android-native-libs branch from df943b1 to 23577ef Compare July 2, 2015 14:53
@ns-bot
Copy link

ns-bot commented Jul 2, 2015

@Fatme Fatme force-pushed the fatme/android-native-libs branch from 23577ef to 706015d Compare July 2, 2015 15:02
@ns-bot
Copy link

ns-bot commented Jul 2, 2015

@ErjanGavalji
Copy link
Contributor

👍

let i = 1;
let currentValue: any;
while (currentValue = editor.get(this.buildKeyName(key, i))) {
if (currentValue.toLowerCase() === valueLowerCase) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some indentation issues maybe... The if does not look on its place

@rosen-vladimirov
Copy link
Contributor

👍 I have some comments and questions, but no merge-stoppers :)

@Fatme Fatme force-pushed the fatme/android-native-libs branch from 706015d to efba2b1 Compare July 6, 2015 07:05
@ns-bot
Copy link

ns-bot commented Jul 6, 2015

Fatme pushed a commit that referenced this pull request Jul 6, 2015
Support for android native libraries in plugin
@Fatme Fatme merged commit 5b5aab2 into master Jul 6, 2015
@Fatme Fatme deleted the fatme/android-native-libs branch July 6, 2015 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants